noinst_PROGRAMS = table_simple table_string
table_simple_SOURCES = table_simple.cpp
table_string_SOURCES = table_string.cpp
table_string_LDADD = @GTKMM_LIBS@
AM_CXXFLAGS = @GTKMM_CFLAGS@

EXTRA_DIST = table_string.cpp.in
BUILT_SOURCES = table_string.h
CLEANFILES = $(BUILT_SOURCES) table_string.cpp

table_simple.h: table_simple
	./table_simple > $@

table_string.cpp: table_string.cpp.in table_simple.h
	sed -e '/\/\* TABLE_SIMPLE \*\//,$$d' < table_string.cpp.in > $@
	cat table_simple.h >> $@
	sed -e '1,/\/\* TABLE_SIMPLE \*\//d' < table_string.cpp.in >> $@

table_string.h: table_string
	./table_string > $@
